<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!--返回错误信息-->
<?php echo validation_errors(); ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <?php
    $title = [
        'title' => '新增供应商',
    ];
    $this->load->view('/admin/common/header', $title);
    ?>
</head>

<body data-type="widgets">
<script src="/assets/js/theme.js"></script>
<div class="am-g tpl-g">

    <!--    头部   侧边菜单-->
    <?php $this->load->view('/admin/common/bodyLeft'); ?>

    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title  am-cf">
                                <ol class="am-breadcrumb am-breadcrumb-slash">
                                    <li><a href="/admin/supplier/index?page=1">供应商管理</a></li>
                                    <li class="am-active">新增供应商</li>
                                </ol>
                            </div>
                        </div>
                        <form action="/admin/supplier/add" method="post" enctype="multipart/form-data" class="am-form am-text-sm">
                            <div class="widget-body  am-fr">
                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        基本信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <!-- Row start -->
                                        <div class="am-u-sm-12">
                                            <div class="am-g">
                                                <div class="am-u-md-6">
<!--                                                    <form class="am-form am-text-sm">-->
                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-text-1">供应商编号</label>
                                                                <input class="am-u-md-10 form-control" name="code"
                                                                       id="doc-ipt-text-1">
                                                            </div>
                                                        </div>

                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-email-1">供应商简称</label>
                                                                <input class="am-u-md-10 form-control" name="simple"
                                                                       id="doc-ipt-email-1">
                                                            </div>
                                                        </div>

                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-email-1">联系人</label>
                                                                <input class="am-u-md-10 form-control" name="linkMan"
                                                                       id="doc-ipt-email-1">
                                                            </div>
                                                        </div>

                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ta-1">公司地址</label>
                                                                <textarea class="am-u-md-10 form-control" rows="5" name="address"
                                                                          style="-webkit-border-radius: ;-moz-border-radius: ;border-radius: 3px;width:83%"
                                                                          id="doc-ta-1"></textarea>
                                                            </div>
                                                        </div>
<!--                                                    </form>-->
                                                </div>

                                                <div class="am-u-md-6">
<!--                                                    <form class="am-form am-text-sm">-->
                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-email-1">供应商名称</label>
                                                                <input class="am-u-md-10 form-control" name="name"
                                                                       id="doc-ipt-email-1">
                                                            </div>
                                                        </div>

                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-email-1">联络人</label>
                                                                <input class="am-u-md-10 form-control" name="contactMan"
                                                                       id="doc-ipt-email-1">
                                                            </div>
                                                        </div>

                                                        <div class="am-form-group">
                                                            <div class="am-g">
                                                                <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                       for="doc-ipt-email-1">联系电话</label>
                                                                <input class="am-u-md-10 form-control" name="phone"
                                                                       id="doc-ipt-email-1">
                                                            </div>
                                                        </div>

<!--                                                    </form>-->
                                                </div>
                                            </div>
                                        </div>
                                        <!-- Row end -->
                                    </div>
                                    <hr>
                                </div>

                                <div class="tpl-table-black-operation">
                                    <a href="javascript:void(0);" class="tpl-table-black-operation-del">
                                        更多信息
                                    </a>
                                </div>

                                <div style="margin-top: 20px">
                                    <div class="am-g">
                                        <!-- Row start -->
                                        <div class="am-u-sm-12">
                                            <div class="am-g">
                                                <div class="am-u-md-6">
                                                    <!--                                                    <form class="am-form am-text-sm">-->
                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-text-1">成立时间</label>
                                                            <input class="am-u-md-10 form-control" name="createTime"
                                                                   id="doc-ipt-text-1">
                                                        </div>
                                                    </div>

                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-email-1">公司性质</label>
                                                            <input class="am-u-md-10 form-control" name="nature"
                                                                   id="doc-ipt-email-1">
                                                        </div>
                                                    </div>

                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-email-1">外包厂商</label>
                                                            <input class="am-u-md-10 form-control" name="vender"
                                                                   id="doc-ipt-email-1">
                                                        </div>
                                                    </div>

                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ta-1">备注</label>
                                                            <textarea class="am-u-md-10 form-control" rows="5" name="note"
                                                                      style="-webkit-border-radius: ;-moz-border-radius: ;border-radius: 3px;width:83%"
                                                                      id="doc-ta-1"></textarea>
                                                        </div>
                                                    </div>
                                                    <!--                                                    </form>-->
                                                </div>

                                                <div class="am-u-md-6">
                                                    <!--                                                    <form class="am-form am-text-sm">-->
                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-email-1">公司规模</label>
                                                            <input class="am-u-md-10 form-control" name="size" value="12344"
                                                                   id="doc-ipt-email-1">
                                                        </div>
                                                    </div>

                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-email-1">是否为生产者</label>
                                                            <input class="am-u-md-10 form-control" name="isProducers" value="123"
                                                                   id="doc-ipt-email-1">
                                                        </div>
                                                    </div>

                                                    <div class="am-form-group">
                                                        <div class="am-g">
                                                            <label class="am-u-md-2 am-md-text-right am-padding-left-0"
                                                                   for="doc-ipt-email-1">邮件</label>
                                                            <input class="am-u-md-10 form-control" name="mail"
                                                                   id="doc-ipt-email-1">
                                                        </div>
                                                    </div>

                                                    <!--                                                    </form>-->
                                                </div>
                                            </div>
                                        </div>
                                        <!-- Row end -->
                                    </div>
                                </div>

                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <input type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="width:220px;margin: 20px;">

                                    <button onclick="back()" type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="width:220px">取消</button>
                                </div>

                              </div>


                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script>
    function back() {
        window.history.back();
    }
</script>

<script src="/assets/js/amazeui.min.js"></script>
<script src="/assets/js/amazeui.datatables.min.js"></script>
<script src="/assets/js/dataTables.responsive.min.js"></script>
<script src="/assets/js/app.js"></script>

</body>

</html>